package cn.edu.zzuli.Test;


import cn.edu.zzuli.config.SpringConfig;
import cn.edu.zzuli.config.WebMvcConfig;
import cn.edu.zzuli.util.AliOssUtils;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
import org.springframework.test.context.web.WebAppConfiguration;

@RunWith(SpringJUnit4ClassRunner.class)
@WebAppConfiguration(value = "src/main/webapp")
@ContextConfiguration(classes = {WebMvcConfig.class, SpringConfig.class})
public class OssTest {

    @Autowired
    AliOssUtils ossUtils;


    @Test
    public void testSts() {
        ossUtils.getStsClient();
    }

}
